<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>zhaoyunlicai</title>
    <script>
    	
    	//自适应
			function init() {
				var screenW = document.documentElement.offsetWidth || document.body.offsetWidth;
				var oHtml = document.getElementsByTagName('html')[0];
				oHtml.style.fontSize = (100*screenW/375) + 'px';
				
			}
			init();
			window.addEventListener('orientationchange',init);
			window.addEventListener('resize',init);
			
			//原生ajax
			var ajax = function(info){
				if(window.XMLHttpRequest){
					var xhr = new XMLHttpRequest();	
				}else{
					var xhr = new ActiveXObject("Microsoft.XMLHTTP");
				}
				var url = info.url;
				var type = info.type||"GET";
				var data = info.data||"";
				
				if(type=="GET"){
					xhr.open("GET",url+"?"+data+"&t="+new Date().getTime(),true);
					xhr.send();
				}else{
					xhr.open("POST",url,true);
					xhr.setRequestHeader("Content-Type","application/json; charset=utf-8");
					xhr.setRequestHeader("dt",(new Date()).getTime());
					xhr.setRequestHeader("AppSource","h5");
					xhr.send(data);
				}
				
				xhr.onload = function(){
					if(info.success){
						info.success(JSON.parse(xhr.responseText));
					}
				}
			}
    </script>
    <style>
    	*{
				padding: 0;
				margin: 0;
			}
			input[type='text']{
				padding: 0!important;
			}
			li{
				list-style: none;
			}
			a{
				text-decoration: none;
			}
    	body{
    		width: 100%;
    		height: 100%;
    		font-size: 100px;
    		background: #F0F0F0;
    	}
    </style>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
<script src='static/MD5/md5.js'></script>
